package com.cgm.rsp.server;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Set;
import java.util.regex.Pattern;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class RspServer {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		//Server server = new Server(8080);
		
		//File[] enums=getPackageContent("com/cgm/rsp/server");
		//ComponentScanner scanner = new ComponentScanner();
		//scanner.

		//URL[] urls=ClasspathUrlFinder.findResourceBases("com/cgm/rsp/server");
		 /*Reflections reflections = new Reflections("wars", new ResourcesScanner());
		Set<String> s=reflections.getResources(Pattern.compile(".*\\.war"));
		for (String str : s) {
			System.out.println(str);
		}*/
		//String warPath=args
		//WebAppContext webapp = new WebAppContext();
	    //webapp.setContextPath("/");
	    //webapp.setWar("../rsp-internal/rsp-internal-0.0.1-SNAPSHOT.war");
	    //server.setHandler(webapp);
		
		//server.start();
		//server.join();
	}

}
